package com.zsrt.java.day20170103.wrl.t07.abs;

public abstract class Persion {
	public Persion() {
		
	}
	public Persion(String name, int age) {
		this.name = name;
		this.age = age;
	}
	
	private String name;	//定义name属性
	private int age;		//定义age属性
	
	public abstract String getContent();	//说话
	
	public void say(){		//人说话的具体功能
		System.out.println(this.getContent());//输出内容
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	

}
